package com.tiancheng.trade.authserver.utils;

import org.apache.commons.codec.digest.DigestUtils;

public class IdGenerateUtils {
    /**
     * 生成openId
     */
    public static String generateOpenId(Long userId, String clientId) {
        return "t-" + DigestUtils.md5Hex(userId + clientId);
    }
}
